<?php

use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $data = [];
        for($i=0;$i<20;$i++){
        	$temp = [];
        	$temp['username'] = str_random(10);
        	$temp['password'] = Hash::make('lamp160');
        	$temp['email'] = rand(100000,999999).'@qq.com';
        	$temp['phone'] = '13'.rand(100000000,999999999);
        	$temp['profile'] = '/uploads20161115/1479180677742233.jpg';
        	$data[] = $temp;
        	// DB::table('users')->insert($temp);
        }
        DB::table('users')->insert($data);
    }
}
